package com.baibei.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * {
 * "name": "征服波尔多经典XO", #商品名称
 * "orderNum": "312300112017082414544308", #订单号
 * "deliveryNum": 1, #交付数量
 * "deliveryMoney": 166.45, #交付金额
 * "status": 1, #状态 1,未审核；2，成功；3，失败
 * "createdTime": 1503563989000 #建单时间
 * }
 * 补款取货实体类
 * Created by shenminjie on 2017/8/25.
 * mail:shenminjie@100bei.com
 */

public class DeliveryQueryInfo implements Serializable, Parcelable {
    private String name;

    private String orderNum;

    private int deliveryNum;

    private double deliveryMoney;

    private int status;

    private long createdTime;

    @Override
    public String toString() {
        return "DeliveryQueryInfo{" +
                "name='" + name + '\'' +
                ", orderNum='" + orderNum + '\'' +
                ", deliveryNum=" + deliveryNum +
                ", deliveryMoney=" + deliveryMoney +
                ", status=" + status +
                ", createdTime=" + createdTime +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public int getDeliveryNum() {
        return deliveryNum;
    }

    public void setDeliveryNum(int deliveryNum) {
        this.deliveryNum = deliveryNum;
    }

    public double getDeliveryMoney() {
        return deliveryMoney;
    }

    public void setDeliveryMoney(double deliveryMoney) {
        this.deliveryMoney = deliveryMoney;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public long getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(long createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.orderNum);
        dest.writeInt(this.deliveryNum);
        dest.writeDouble(this.deliveryMoney);
        dest.writeInt(this.status);
        dest.writeLong(this.createdTime);
    }

    public DeliveryQueryInfo() {
    }

    protected DeliveryQueryInfo(Parcel in) {
        this.name = in.readString();
        this.orderNum = in.readString();
        this.deliveryNum = in.readInt();
        this.deliveryMoney = in.readDouble();
        this.status = in.readInt();
        this.createdTime = in.readLong();
    }

    public static final Parcelable.Creator<DeliveryQueryInfo> CREATOR = new Parcelable.Creator<DeliveryQueryInfo>() {
        @Override
        public DeliveryQueryInfo createFromParcel(Parcel source) {
            return new DeliveryQueryInfo(source);
        }

        @Override
        public DeliveryQueryInfo[] newArray(int size) {
            return new DeliveryQueryInfo[size];
        }
    };
}
